home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
ada
/
gnat1792.zip
/
gnat179b
/
examples
/
instr-ch.adb
< prev
next >
Wrap
Text File
|
1994-05-13
|
622b
|
20 lines
with Io; use Io;
package body Instr.Child is
procedure Display_Value (C : Accurate_Clock) is
begin
Display_Value (Clock (C));
Put (":");
Put (Character'Val (Character'Pos ('0') + (C.MilliSec / 100) mod 10));
Put (Character'Val (Character'Pos ('0') + (C.MilliSec / 10) mod 10));
Put (Character'Val (Character'Pos ('0') + C.MilliSec mod 10));
end Display_Value;
procedure Increment (C : in out Accurate_Clock; Inc : Integer := 1) is
begin
Increment (Clock (C), (C.MilliSec + Inc) / 1000);
C.MilliSec := (C.MilliSec + Inc) mod 1000;
end Increment;
end;